import request, { uaaUrl } from "@/utils/request";
//.........注册...........

// 单位信息查询
export function getDeptInfoByName(params) {
  return request({
    url: uaaUrl() + "api-system/v1/deptInfo/getDeptInfoByName",
    method: "get",
    params,
  });
}

// 注册
export function register(data) {
  return request({
    url: uaaUrl() + "api-system/v1/sysUser/register",
    method: "post",
    data,
  });
}
// 检查单位名称和统一社会信用代码是否已注册
export function checkRegistered(params) {
  return request({
    url: uaaUrl() + "api-system/v1/deptInfo/checkRegistered",
    method: "get",
    params,
  });
}

// 检查单位名称和统一社会信用代码是否已注册
export function checkMobileEmail(params) {
  return request({
    url: uaaUrl() + "api-system/v1/sysUser/validMobileEmailUserName",
    method: "get",
    params,
  });
}

// 注册省外无挂靠用户
export function registerOut(data) {
  return request({
    url: uaaUrl() + "api-system/v1/sysUser/registerNoAffiliation",
    method: "post",
    data,
  });
}
